package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Schema(name ="押金")
public class MemberDeposit    extends Entity {
    @Schema(description = "押金id")
    private String id;
    @Schema(description = "订单id")
    private String memberOrderId;
    @Schema(description = "骑行人")
    private String memberId;
    @Schema(description = "骑行人名称")
    private  String memberName;
    @Schema(description = "骑行人电话")
    private  String memberTelphone;
    @Schema(description = "押金金额")
    private BigDecimal money;
    @Schema(description = "押金状态 0 已支付 1 退款中 2 已退款 3 待支付 4支付失败")
    private Integer depositState;
    @Schema(description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;
    @Schema(description = "退款时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date refundTime;

}